<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>OrbbecSDK: ob::Sensor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="orbbec_icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OrbbecSDK
   &#160;<span id="projectnumber">1.10.22</span>
   </div>
   <div id="projectbrief">OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceob.html">ob</a></li><li class="navelem"><a class="el" href="classob_1_1Sensor.html">Sensor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classob_1_1Sensor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ob::Sensor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="Sensor_8hpp_source.html">Sensor.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae61409be636894608ae694494ccd0377"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#ae61409be636894608ae694494ccd0377">Sensor</a> (std::unique_ptr&lt; SensorImpl &gt; impl)</td></tr>
<tr class="separator:ae61409be636894608ae694494ccd0377"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a2b323c694c7c40221e84572071b39e"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#a9a2b323c694c7c40221e84572071b39e">~Sensor</a> () noexcept</td></tr>
<tr class="separator:a9a2b323c694c7c40221e84572071b39e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa62d80b41dd6674b3a85ad6c458c5a57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ObTypes_8h.html#a0bf6f74f3eaabbf4a71720b9363b2aa8">OBSensorType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#aa62d80b41dd6674b3a85ad6c458c5a57">type</a> ()</td></tr>
<tr class="memdesc:aa62d80b41dd6674b3a85ad6c458c5a57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the sensor type.  <a href="#aa62d80b41dd6674b3a85ad6c458c5a57">More...</a><br /></td></tr>
<tr class="separator:aa62d80b41dd6674b3a85ad6c458c5a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c62e71074fa39fa48de3d6fe665ad2c"><td class="memItemLeft" align="right" valign="top">const std::shared_ptr&lt; <a class="el" href="classob_1_1StreamProfileList.html">StreamProfileList</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#a7c62e71074fa39fa48de3d6fe665ad2c">getStreamProfileList</a> ()</td></tr>
<tr class="memdesc:a7c62e71074fa39fa48de3d6fe665ad2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the list of stream profiles.  <a href="#a7c62e71074fa39fa48de3d6fe665ad2c">More...</a><br /></td></tr>
<tr class="separator:a7c62e71074fa39fa48de3d6fe665ad2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54ee16e8ddc877bf6eb96a01ad904ac0"><td class="memItemLeft" align="right" valign="top">const std::shared_ptr&lt; <a class="el" href="classob_1_1OBFilterList.html">OBFilterList</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#a54ee16e8ddc877bf6eb96a01ad904ac0">getRecommendedFilters</a> ()</td></tr>
<tr class="memdesc:a54ee16e8ddc877bf6eb96a01ad904ac0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request recommended filters.  <a href="#a54ee16e8ddc877bf6eb96a01ad904ac0">More...</a><br /></td></tr>
<tr class="separator:a54ee16e8ddc877bf6eb96a01ad904ac0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a688e518379e9cacf3d9b6b107666b716"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#a688e518379e9cacf3d9b6b107666b716">start</a> (std::shared_ptr&lt; <a class="el" href="classob_1_1StreamProfile.html">StreamProfile</a> &gt; streamProfile, <a class="el" href="namespaceob.html#a46d3e40b30648ef9c30cc8be177cedda">FrameCallback</a> callback)</td></tr>
<tr class="memdesc:a688e518379e9cacf3d9b6b107666b716"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a frame data stream and set up a callback.  <a href="#a688e518379e9cacf3d9b6b107666b716">More...</a><br /></td></tr>
<tr class="separator:a688e518379e9cacf3d9b6b107666b716"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae13ee851da868f2cc156213cd3dfe981"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#ae13ee851da868f2cc156213cd3dfe981">stop</a> ()</td></tr>
<tr class="memdesc:ae13ee851da868f2cc156213cd3dfe981"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop the stream.  <a href="#ae13ee851da868f2cc156213cd3dfe981">More...</a><br /></td></tr>
<tr class="separator:ae13ee851da868f2cc156213cd3dfe981"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2c1cc86f39ccc128fd842023f1688c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#af2c1cc86f39ccc128fd842023f1688c2">switchProfile</a> (std::shared_ptr&lt; <a class="el" href="classob_1_1StreamProfile.html">StreamProfile</a> &gt; streamProfile)</td></tr>
<tr class="memdesc:af2c1cc86f39ccc128fd842023f1688c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dynamically switch resolutions.  <a href="#af2c1cc86f39ccc128fd842023f1688c2">More...</a><br /></td></tr>
<tr class="separator:af2c1cc86f39ccc128fd842023f1688c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a5b82258d1cacac7162763da9298a4bb4"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; SensorImpl &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classob_1_1Sensor.html#a5b82258d1cacac7162763da9298a4bb4">impl_</a></td></tr>
<tr class="separator:a5b82258d1cacac7162763da9298a4bb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="Sensor_8hpp_source.html#l00031">31</a> of file <a class="el" href="Sensor_8hpp_source.html">Sensor.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae61409be636894608ae694494ccd0377"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ob::Sensor::Sensor </td>
          <td>(</td>
          <td class="paramtype">std::unique_ptr&lt; SensorImpl &gt;&#160;</td>
          <td class="paramname"><em>impl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9a2b323c694c7c40221e84572071b39e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ob::Sensor::~Sensor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa62d80b41dd6674b3a85ad6c458c5a57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="ObTypes_8h.html#a0bf6f74f3eaabbf4a71720b9363b2aa8">OBSensorType</a> ob::Sensor::type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the sensor type. </p>
<dl class="section return"><dt>Returns</dt><dd>OBSensorType The sensor type. </dd></dl>

</div>
</div>
<a class="anchor" id="a7c62e71074fa39fa48de3d6fe665ad2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::shared_ptr&lt;<a class="el" href="classob_1_1StreamProfileList.html">StreamProfileList</a>&gt; ob::Sensor::getStreamProfileList </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the list of stream profiles. </p>
<dl class="section return"><dt>Returns</dt><dd>std::shared_ptr&lt;StreamProfileList&gt; The stream profile list. </dd></dl>

</div>
</div>
<a class="anchor" id="a54ee16e8ddc877bf6eb96a01ad904ac0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::shared_ptr&lt;<a class="el" href="classob_1_1OBFilterList.html">OBFilterList</a>&gt; ob::Sensor::getRecommendedFilters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Request recommended filters. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classob_1_1OBFilterList.html" title="Class representing a list of FrameProcessingBlock. ">OBFilterList</a> list of frame processing block </dd></dl>

</div>
</div>
<a class="anchor" id="a688e518379e9cacf3d9b6b107666b716"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ob::Sensor::start </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classob_1_1StreamProfile.html">StreamProfile</a> &gt;&#160;</td>
          <td class="paramname"><em>streamProfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceob.html#a46d3e40b30648ef9c30cc8be177cedda">FrameCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open a frame data stream and set up a callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">streamProfile</td><td>The stream configuration. </td></tr>
    <tr><td class="paramname">callback</td><td>The callback to set when frame data arrives. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae13ee851da868f2cc156213cd3dfe981"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ob::Sensor::stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stop the stream. </p>

</div>
</div>
<a class="anchor" id="af2c1cc86f39ccc128fd842023f1688c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ob::Sensor::switchProfile </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classob_1_1StreamProfile.html">StreamProfile</a> &gt;&#160;</td>
          <td class="paramname"><em>streamProfile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Dynamically switch resolutions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">streamProfile</td><td>The resolution to switch to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a5b82258d1cacac7162763da9298a4bb4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::unique_ptr&lt;SensorImpl&gt; ob::Sensor::impl_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="Sensor_8hpp_source.html#l00033">33</a> of file <a class="el" href="Sensor_8hpp_source.html">Sensor.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/root/libobsensor/include/libobsensor/hpp/<a class="el" href="Sensor_8hpp_source.html">Sensor.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Apr 10 2025 12:28:22 for OrbbecSDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
